import DEKP1245701 from "@/assets/radar/radar_1.png"
import DEKP1245702 from "@/assets/radar/radar_2.png"
import DEKP1245703 from "@/assets/radar/radar_3.png"
import DEKP1245704 from "@/assets/radar/radar_4.png"
import DEKP1245705 from "@/assets/radar/radar_5.png"
import DEKP1245706 from "@/assets/radar/radar_6.png"
import DEKP1245707 from "@/assets/radar/radar_7.png"
import DEKP1245708 from "@/assets/radar/radar_8.png"
// #5 东北角
import DEKP1245709 from "@/assets/radar/radar_9.png"
import DEKP1245710 from "@/assets/radar/radar_10.png"
import DEKP1245711 from "@/assets/radar/radar_11.png"
import DEKP1245712 from "@/assets/radar/radar_12.png"
import DEKP1245713 from "@/assets/radar/radar_13.png"
import DEKP1245714 from "@/assets/radar/radar_14.png"

import DEKP1245715 from "@/assets/radar/radar_15.png"
import DEKP1245716 from "@/assets/radar/radar_16.png"
import DEKP1245717 from "@/assets/radar/radar_17.png"
import DEKP1245718 from "@/assets/radar/radar_18.png"
import DEKP1245719 from "@/assets/radar/radar_19.png"
// 6号楼1单元东南角
import DEKP1245720 from "@/assets/radar/radar_20.png"
import DEKP1245721 from "@/assets/radar/radar_21.png"
import DEKP1245722 from "@/assets/radar/radar_22.png"
import DEKP1245723 from "@/assets/radar/radar_23.png"
import DEKP1245724 from "@/assets/radar/radar_24.png"
import DEKP1245725 from "@/assets/radar/radar_25.png"
import DEKP1245726 from "@/assets/radar/radar_26.png"
// 8# 1东北角
import DEKP1245727 from "@/assets/radar/radar_27.png"
import DEKP1245728 from "@/assets/radar/radar_28.png"
import DEKP1245729 from "@/assets/radar/radar_29.png"
import DEKP1245730 from "@/assets/radar/radar_30.png"
import DEKP1245731 from "@/assets/radar/radar_31.png"
import DEKP1245732 from "@/assets/radar/radar_32.png"
import DEKP1245733 from "@/assets/radar/radar_33.png"
import DEKP1245734 from "@/assets/radar/radar_34.png"
import DEKP1245735 from "@/assets/radar/radar_35.png"
import DEKP1245736 from "@/assets/radar/radar_36.png"
import DEKP1245737 from "@/assets/radar/radar_37.png"
import DEKP1245738 from "@/assets/radar/radar_38.png"
import DEKP1245739 from "@/assets/radar/radar_39.png"

import upleft from "@/assets/radar/bg/rader_1.png"
import upright from "@/assets/radar/bg/rader_4.png"
import bottomleft from "@/assets/radar/bg/rader_2.png"
import bottomright from "@/assets/radar/bg/rader_3.png"


export const radars = {
    DEKP1245701,
    DEKP1245702,
    DEKP1245703,
    DEKP1245704,
    DEKP1245705,
    DEKP1245706,
    DEKP1245707,
    DEKP1245708,
    DEKP1245709,
    DEKP1245710,
    DEKP1245711,
    DEKP1245712,
    DEKP1245713,
    DEKP1245714,
    DEKP1245715,
    DEKP1245716,
    DEKP1245717,
    DEKP1245718,
    DEKP1245719,
    DEKP1245720,
    DEKP1245721,
    DEKP1245722,
    DEKP1245723,
    DEKP1245724,
    DEKP1245725,
    DEKP1245726,
    DEKP1245727,
    DEKP1245728,
    DEKP1245729,
    DEKP1245730,
    DEKP1245731,
    DEKP1245732,
    DEKP1245733,
    DEKP1245734,
    DEKP1245735,
    DEKP1245736,
    DEKP1245737,
    DEKP1245738,
    DEKP1245739
}

export const raderBg = (radarCode) => {
  if (radarCode === 'DEKP1245701' || radarCode === 'DEKP1245703' || radarCode === 'DEKP1245705'
    || radarCode === 'DEKP1245706' || radarCode === 'DEKP1245714' || radarCode === 'DEKP1245715'
    || radarCode === 'DEKP1245722' || radarCode === 'DEKP1245724' || radarCode === 'DEKP1245735'
    || radarCode === 'DEKP1245737' || radarCode === 'DEKP1245731' || radarCode === 'DEKP1245733') {
    return upleft
  } else if (radarCode === 'DEKP1245702' || radarCode === 'DEKP1245711' || radarCode === 'DEKP1245716'
    || radarCode === 'DEKP1245723' || radarCode === 'DEKP1245730' || radarCode === 'DEKP1245734') {
    return bottomleft
  } else if (radarCode === 'DEKP1245707' || radarCode === 'DEKP1245709' || radarCode === 'DEKP1245710' ||
    radarCode === 'DEKP1245712' || radarCode === 'DEKP1245717' || radarCode === 'DEKP1245718' || radarCode === 'DEKP1245719' ||
    radarCode === 'DEKP1245725' || radarCode === 'DEKP1245727' ||
    radarCode === 'DEKP1245729' || radarCode === 'DEKP1245732' || radarCode === 'DEKP1245736' || radarCode === 'DEKP1245739') {
    return upright
  } else if (radarCode === 'DEKP1245704' || radarCode === 'DEKP1245708' || radarCode === 'DEKP1245713' || radarCode === 'DEKP1245720' ||
    radarCode === 'DEKP1245721' || radarCode === 'DEKP1245726' || radarCode === 'DEKP1245728' || radarCode === 'DEKP1245738') {
    return bottomright
  }
}

export const positon = (radarCode, x, y) => {
  // if (radarCode === 'DEKP1245701') {
  //   return {x11: x+150, y11: y+150}
  // } else if (radarCode === 'DEKP1245702') {
  //   return {x11: y+100, y11: 400 - x}
  // } else if (radarCode === 'DEKP1245703') {
  //   return {x11: 1200 + x + 150, y11: y + 200}
  // } else if (radarCode === 'DEKP1245704') {
  //   return {x11: 1400 - x - 40, y11: 400 - y + 20}
  // }else if (radarCode === 'DEKP1245714') {
  //   return {x11: x+150, y11: y+150}
  // }else if (radarCode === 'DEKP1245738') {
  //   return {x11: 300 - x + 130, y11: 600 - y + 20}
  // }else {
  //   return {x11:700-x,y11: 700-y}
  // }
  if (radarCode === 'DEKP1245714') {
    return {x11: 700 - x, y11: 700 - y}
  } else if (radarCode === 'DEKP1245701') {
    return {x11: x, y11: y}
  } else if (radarCode === 'DEKP1245702') {
    return {x11: y + 500, y11: 400 - x + 400}
  } else if (radarCode === 'DEKP1245703') {
    return {x11: x, y11: y}
  } else if (radarCode === 'DEKP1245704') {
    return {x11: 1200 - x - 300, y11: 400 - y + 300}
  } else {
    return {x11: 700 - x, y11: 450 - y}
  }
}
export const radarsInfo = {
  DEKP1245701:{
    position: { x: 10, y: 20 },
    orientation: 45,
    horizontal_direction: 'left'
  },
  DEKP1245702:{
    position: { x: 10, y: 20 },
    orientation: 45,
    horizontal_direction: 'left'
  },
  DEKP1245703:{
    position: { x: 10, y: 20 },
    orientation: 45,
    horizontal_direction: 'left'
  },
  DEKP1245704:{
    position: { x: 10, y: 20 },
    orientation: 45,
    horizontal_direction: 'left'
  },

  DEKP1245715:{
    position: { x: 0.6, y: 6.6 },
    orientation: 210,
    horizontal_direction: 'right'
  },
    DEKP1245716:{
    position: { x: 1, y: 0.2 },
    orientation: 45,
    horizontal_direction: 'left'
  },

    DEKP1245717:{
    position: { x: 15, y: 2.8 },
    // position: { x: 18.5, y: 3 },
    orientation: 230,
    // orientation: 45,
    horizontal_direction: 'left'
  },
    DEKP1245718:{
    position: { x: 20.7, y: 6 },
    orientation: 190,
    horizontal_direction: 'left'
  },
    DEKP1245719:{
    position: { x: 23.7, y: 5.175 },
    orientation: 202,
    horizontal_direction: 'left'
  },

  DEKP1245720:{
    position: { x: 23.7, y: 2.5 },
    orientation: 150,
    horizontal_direction: 'right'
  },
}
